		<div id="main-content">
            <?php
                $content = form_open_multipart('/admin/contacte/' . $form_route);
                $content .= form_label('Denumire:', 'frmContactName');
                $value = $contact!=FALSE?($contact['cnt_firstname'] . ' ' . $contact['cnt_lastname']):set_value('frmContactName');
                $content .= form_input(array('name' => 'frmContactName', 'id' => 'frmContactName', 'value' => $value));
                $content .= form_label('Telefon:', 'frmContactPhone');
                $value = $contact!=FALSE?$contact['cnt_phonenb']:set_value('frmContactPhone');
                $content .= form_input(array('name' => 'frmContactPhone', 'id' => 'frmContactPhone', 'value' => $value));
                $content .= form_label('Email:', 'frmContactEmail');
                $value = $contact!=FALSE?$contact['cnt_email']:set_value('frmContactEmail');
                $content .= form_input(array('name' => 'frmContactEmail', 'id' => 'frmContactEmail', 'value' => $value));
                $content .= form_label('Fax:', 'frmContactFax');
                $value = $contact!=FALSE?$contact['cnt_faxnb']:set_value('frmContactFax');
                $content .= form_input(array('name' => 'frmContactFax', 'id' => 'frmContactFax', 'value' => $value));
                $content .= form_label('Adresa:', 'frmContactAddr1');
                $value = $contact!=FALSE?$contact['cnt_addr1']:set_value('frmContactAddr1');
                $content .= form_input(array('name' => 'frmContactAddr1', 'id' => 'frmContactAddr1', 'value' => $value));
                $content .= form_label('CIF:', 'frmContactRegId');
                $value = $contact!=FALSE?$contact['cnt_regid']:set_value('frmContactRegid');
                $content .= form_input(array('name' => 'frmContactRegId', 'id' => 'frmContactRegId', 'value' => $value));
                $content .= form_label('RC:', 'frmContactTradeRegId');
                $value = $contact!=FALSE?$contact['cnt_traderegid']:set_value('frmContactTradeRegId');
                $content .= form_input(array('name' => 'frmContactTradeRegId', 'id' => 'frmContactTradeRegId', 'value' => $value));
                $content .= form_label('Logo:', 'frmContactLogo');
                $content .= form_upload(array('name' => 'frmContactLogo', 'id' => 'frmContactLogo', 'value' => '', 'class' => 'multi', 'accept' => 'jpg|png|bmp', 'maxlength' => '1'));
                $content .= form_submit('frmContactSend', 'Adauga');
                $content .= form_close();
                echo $content;
            ?>			
		</div>
		
		<div class="clear"><?php echo $message; ?></div>
	</div>

</body>

</html>
